using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace DragonAwakening.Game
{
    public class World 
    {
        public MapCell[,] worldMap;

        public MapCell empty = new MapCell(0, 0, 0, 0, 0, 0, 0, 0);

        public Vector2 size = new Vector2(9, 9);

        public World()
        {
            var cl_21 = new MapCell(0, 0, 1, 0, 0, 1, 1, 0);
            var cl_31 = new MapCell(0, 0, 1, 0, 1, 0, 1, 0);
            var cl_22 = new MapCell(0, 0, 0, 1, 0, 1, 1, 0);
            var cl_32 = new MapCell(0, 0, 0, 0, 1, 0, 1, 0);
            var cl_33 = new MapCell(0, 0, 0, 0, 1, 1, 1, 0);
            var cl_14 = new MapCell(0, 0, 1, 0, 0, 1, 1, 0);
            var cl_24 = new MapCell(0, 0, 1, 0, 0, 0, 1, 0);
            var cl_34 = new MapCell(0, 0, 0, 0, 1, 0, 1, 0);
            var cl_15 = new MapCell(0, 0, 0, 0, 0, 1, 1, 0);
            var cl_25 = new MapCell(0, 0, 0, 0, 0, 0, 1, 0);
            var cl_35 = new MapCell(0, 0, 0, 0, 1, 0, 1, 0);
            var cl_16 = new MapCell(0, 0, 0, 1, 0, 1, 1, 0);
            var cl_26 = new MapCell(0, 0, 0, 0, 0, 0, 1, 0);
            var cl_36 = new MapCell(0, 0, 0, 0, 1, 0, 1, 0);
            var cl_17 = new MapCell(0, 0, 1, 1, 0, 1, 1, 0);
            var cl_27 = new MapCell(0, 0, 0, 1, 0, 0, 1, 0);
            var cl_37 = new MapCell(0, 0, 0, 0, 1, 0, 1, 0);
            var cl_38 = new MapCell(0, 0, 0, 1, 1, 1, 1, 0);

            worldMap = new MapCell[10, 10]
            {    //  0      1      2      3      4      5      6      7      8      9
           /* 0 */ { empty, empty, empty, empty, empty, empty, empty, empty, empty, empty },
           /* 1 */ { empty, empty, cl_21, cl_31, empty, empty, empty, empty, empty, empty },
           /* 2 */ { empty, empty, cl_22, cl_32, empty, empty, empty, empty, empty, empty },
           /* 3 */ { empty, empty, empty, cl_33, empty, empty, empty, empty, empty, empty },
           /* 4 */ { empty, cl_14, cl_24, cl_34, empty, empty, empty, empty, empty, empty },
           /* 5 */ { empty, cl_15, cl_25, cl_35, empty, empty, empty, empty, empty, empty },
           /* 6 */ { empty, cl_16, cl_26, cl_36, empty, empty, empty, empty, empty, empty },
           /* 7 */ { empty, cl_17, cl_27, cl_37, empty, empty, empty, empty, empty, empty },
           /* 8 */ { empty, empty, empty, cl_38, empty, empty, empty, empty, empty, empty },
           /* 9 */ { empty, empty, empty, empty, empty, empty, empty, empty, empty, empty }
            };
        }
    }
}
